package com.appkubes.mall.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 购物车
 * @author Rongjie
 */
@Data
@TableName("mall_cart")
@KeySequence(value = "mall_cart_SEQ")
@ApiModel(value = "MallCart对象")
public class MallCart implements Serializable{

       @ApiModelProperty(value = "归属的管理员uuid")
       private String appKey;

       @TableId(value = "cart_key", type = IdType.UUID)
       private String cartKey;

       @ApiModelProperty(value = "用户id")
       private String userKey;

       @ApiModelProperty(value = "商品id")
       private String goodsKey;

       @ApiModelProperty(value = "商品数量", example = "1")
       private Integer num;

       @ApiModelProperty(value = "规格ids")
       private String attrKeys;

       private Integer createTime;

       private String leaderKey;

       private Integer updateTime;

       @ApiModelProperty(value = "规格ids")
       private String attrNames;

       @ApiModelProperty(value = "商家id")
       private String storeKey;

       @ApiModelProperty(value = "外部用户id")
       private String saasUserid;

       private String activityKey;

       private String activityEndtime;

       private Integer customerKey;

       @ApiModelProperty(value = "版本号", example = "1")
       @Version
       private Integer version;

}
